//
//  SelfTableViewController.swift
//  Nahuo
//
//  Created by zang qilong on 2017/5/12.
//  Copyright © 2017年 zang qilong. All rights reserved.
//

import UIKit
import URLNavigator

final class SelfTableViewController: UITableViewController {
        
    override func viewDidLoad() {
        super.viewDidLoad()

        self.tableView.register(UITableViewCell.self, forCellReuseIdentifier: "SelfTableViewCell")
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

    // MARK: - Table view data source

    override func numberOfSections(in tableView: UITableView) -> Int {
        // #warning Incomplete implementation, return the number of sections
        return 0
    }

    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        // #warning Incomplete implementation, return the number of rows
        return 0
    }
    
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell = tableView.dequeueReusableCell(withIdentifier: "SelfTableViewCell")
        return cell!
    }
    
    // MARK: - Private method
    func setupViews() {
        self.title = "逛市场"
    
        self.automaticallyAdjustsScrollViewInsets = false
        self.navigationController?.navigationBar.shadowImage = UIImage()
        self.navigationController?.navigationBar.setBackgroundImage(UIImage(), for: .default)
    }
    
}

extension SelfTableViewController:URLNavigable {
    convenience init?(navigation: Navigation) {
        self.init()
    }
}
